package com.chuangshi.core.vote.position.controller.admin.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 岗位信息管理端V1新增接收参数
 *
 * @author ggliming
 * @date 2019-02-21
 */
@ApiModel(description = "岗位信息管理端V1列表接收参数")
public class PositionAdminV1SaveRequest extends Request {

    @ApiModelProperty(value = "岗位名称", required = true, position = 10)
    @NotNull(message = "岗位名称不能为空")
    @Length(max = 100, message = "岗位名称长度超出限制")
    private String positionName;

    @ApiModelProperty(value = "岗位备注", required = true, position = 20)
    @Length(max = 200, message = "岗位备注长度超出限制")
    private String positionMemo;

    @ApiModelProperty(value = "排序", required = true, position = 30)
    @NotNull(message = "排序不能为空")
    @Digits(integer = 11, fraction = 0, message = "排序长度超出限制")
    private Integer positionSort;

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getPositionMemo() {
        return positionMemo;
    }

    public void setPositionMemo(String positionMemo) {
        this.positionMemo = positionMemo;
    }

    public Integer getPositionSort() {
        return positionSort;
    }

    public void setPositionSort(Integer positionSort) {
        this.positionSort = positionSort;
    }

}